<?php
$form = $this->beginWidget('CActiveForm', array(
            'id' => 'site-configuration-form',
            'enableAjaxValidation' => false,
        ));
?>
<div class="block">
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
        Fields with <span class="required"><strong>*</strong></span> are required.
    </div>

    <?php echo $form->errorSummary($model); ?>

    <?php echo $form->labelEx($model, 'configuration_title'); ?>
    <?php echo $form->textField($model, 'configuration_title', array('size' => 100, 'maxlength' => 100)); ?>
    <?php //echo $form->error($model,'configuration_title'); ?>
    
    <div class="input_group">
        <?php echo $form->labelEx($model, 'configuration_favicon'); ?>
        <?php
        if($model->configuration_favicon != null) {
            echo '<div>'.CHtml::image(Yii::app()->params['config']['dir']['favicon'].$model->configuration_favicon, (($model->configuration_favicon != null) ? $model->configuration_favicon : ''), array('width' => 16)).'</div>';
        }
        ?>
        <?php echo CHtml::activeFileField($model, 'configuration_favicon'); ?>
        <?php //echo $form->error($model, 'configuration_favicon'); ?>
    </div>

    <?php echo $form->labelEx($model, 'configuration_meta_keyword'); ?>
    <?php echo $form->textArea($model, 'configuration_meta_keyword', array('cols' => 80, 'rows' => 10)); ?>
    <?php //echo $form->error($model,'configuration_meta_keyword'); ?>

    <?php echo $form->labelEx($model, 'configuration_meta_description'); ?>
    <?php echo $form->textArea($model, 'configuration_meta_description', array('cols' => 80, 'rows' => 10)); ?>
    <?php //echo $form->error($model,'configuration_meta_description');  ?>

    <?php echo $form->labelEx($model, 'configuration_footer'); ?>
    <?php echo $form->textField($model, 'configuration_footer', array('size' => 150, 'maxlength' => 255)); ?>
    <?php //echo $form->error($model,'configuration_footer');  ?>

    <button class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span>Save</span></button>

    <?php $this->endWidget(); ?>

</div>
<!-- form -->